import { createRouter, createWebHistory } from 'vue-router'

// Pages
// import StudentPage from '@/components/StudentManagement/StudentPage.vue' // 已删除
// import ClassPage from '@/components/ClassManagement/ClassPage.vue' // 已删除
// import TextbookPage from '@/components/TextbookManagement/TextbookPage.vue' // 已删除

// 教室管理相关页面
import ClassroomApply from '@/components/RoomManagement/ClassroomApply.vue'
import ClassroomResource from '@/components/RoomManagement/ClassroomResource.vue'
import ClassroomUsage from '@/components/RoomManagement/ClassroomUsage.vue'
import ClassroomSimpleApply from '@/components/RoomManagement/ClassroomSimpleApply.vue'

// Routes
const routes = [
    { path: '/', redirect: '/classroom/apply' }, // 默认首页跳转到教室申请管理
    // { path: '/student', name: 'StudentPage', component: StudentPage }, // 已删除
    // { path: '/class', name: 'ClassPage', component: ClassPage }, // 已删除
    // { path: '/textbook', name: 'TextbookPage', component: TextbookPage }, // 已删除
    { path: '/classroom/apply', name: 'ClassroomApply', component: ClassroomApply },
    { path: '/classroom/resource', name: 'ClassroomResource', component: ClassroomResource },
    { path: '/classroom/usage', name: 'ClassroomUsage', component: ClassroomUsage },
    { path: '/classroom/simple-apply', name: 'ClassroomSimpleApply', component: ClassroomSimpleApply },
]

// Router
const router = createRouter({
	history: createWebHistory(),
	routes,
})

export default router